package com.jmx.yp.service;

import java.util.*;

import com.jmx.yp.common.SysConstants;
import com.jmx.yp.dao.IBaseDao;

public class CommonService implements ICommonService {

	private IBaseDao dao;
	
	public void setDao(IBaseDao dao){
		this.dao = dao;
	}
	
	/**
	 * 获取各类系统参数列表
	 * 如：会员类型
	 * 		1----个人会员
	 * 		2----企业会员
	 *  paramMap.put("paramType", SysConstants.COMPANY_SIZE);
		paramMap.put("orderFlag", true);
	 * @return
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	public List getSystemParam(Map paramMap) throws Exception{
		if(paramMap == null || paramMap.isEmpty())
			return null;
		List list = dao.getList("com.jmx.yp.entity.CommonMapper.querySystemParam", paramMap);
		return list;
	}

}
